package com.auto.sns.core.dao.impl;

import java.util.List;
import java.util.Map;

import com.system.common.Page;
import com.auto.sns.core.domain.SnsCoreTaskUserMap;
import com.auto.sns.core.dao.ISnsCoreTaskUserMapDAO;
import com.system.util.PersistUtil;
import com.auto.sns.core.sql.sqlid.SnsCoreTaskUserMapSqlID;
/**
 * : t_auto_sns_core_task_user_map
 * 
 * 
 * @author Gen
 */
public class SnsCoreTaskUserMapDAOImpl implements ISnsCoreTaskUserMapDAO{

	public SnsCoreTaskUserMap insertSnsCoreTaskUserMap(SnsCoreTaskUserMap bean){
		return PersistUtil.insert(bean, SnsCoreTaskUserMapSqlID.INSERT);
	}

	public boolean deleteSnsCoreTaskUserMap(String scumGuid){
		PersistUtil.delete(scumGuid, SnsCoreTaskUserMapSqlID.DELETE);
		return true;
	}	

	public SnsCoreTaskUserMap updateSnsCoreTaskUserMap(SnsCoreTaskUserMap bean){
		return PersistUtil.update(bean, SnsCoreTaskUserMapSqlID.UPDATE);
	}	

	public SnsCoreTaskUserMap loadSnsCoreTaskUserMap(String scumGuid){
		return PersistUtil.query(new SnsCoreTaskUserMap().getClass(), scumGuid);
	}

	public List<SnsCoreTaskUserMap> queryList(Map<String,Object> param,Page page){
		page.setCount(PersistUtil.countSpecial(param, SnsCoreTaskUserMapSqlID.QUERY));
		return PersistUtil.querySpecial(param, SnsCoreTaskUserMapSqlID.QUERY, page.getFullOrderBy(), page.getOffset(), page.getLimit());
	}

}
